package saeildamil.Ch18;


public class Total {
	public static void main(String[] args) {
		int total = 0;
		for(int i=0; i<4; i++){
			total += i;
		}
		System.out.println(total);
		oddSum();
	}
	
	private static void oddSum() {
		int total =0;
		for(int i= 1; i<101; i=i+2){
			total += i;
		}
		System.out.println("1부터 100까지 홀수의 합 : " + total);
	}

}
